1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
import { Metadata } from "next"
import { Separator } from "@/components/ui/separator"
import { SidebarNav } from "@/components/layout/sidebar-nav"
export const metadata: Metadata = {
title: "System Setting",
// description: "Advanced form example using react-hook-form and Zod.",
}
interface SettingsLayoutProps {
children: React.ReactNode
params: { lng: string }
}
export default async function SettingsLayout({
children,
params,
}: {
children: React.ReactNode
params: { lng: string }
}) {
const resolvedParams = await params
const lng = resolvedParams.lng
const sidebarNavItems = [
{
title: "삼성중공업 사용자",
href: `/${lng}/evcp/system`,
},
{
title: "Roles",
href: `/${lng}/evcp/system/roles`,
},
{
title: "권한 통제",
href: `/${lng}/evcp/system/permissions`,
},
{
title: "협력업체 사용자",
href: `/${lng}/evcp/system/admin-users`,
},
{
title: "비밀번호 정책",
href: `/${lng}/evcp/system/password-policy`,
},
]
return (
<>
<div className="container py-6">
<section className="overflow-hidden rounded-[0.5rem] border bg-background shadow">
<div className="hidden space-y-6 p-10 pb-16 md:block">
<div className="space-y-0.5">
<h2 className="text-2xl font-bold tracking-tight">시스템 설정</h2>
{/* <p className="text-muted-foreground">
사용자, 롤, 접근 권한을 관리하세요.
</p> */}
</div>
<Separator className="my-6" />
<div className="flex flex-col space-y-8 lg:flex-row lg:space-x-12 lg:space-y-0">
<aside className="-mx-4 lg:w-1/5">
<SidebarNav items={sidebarNavItems} />
</aside>
<div className="flex-1 ">{children}</div>
</div>
</div>
</section>
</div>
</>
)
}
|